//
//  AXHomeCpsyDsfcjVC.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/29.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXHomeCpsyDsfcjVC.h"
#import "Header.h"
#import "UIView+SDAutoLayout.h"
#import "ZXCategories.h"
#import "AXHomeCpsyDsfcjLsrzVC.h"
#import "AXHomeCpsyDsfcjYjrzVC.h"

@interface AXHomeCpsyDsfcjVC ()
/** 绿色认证查询 */
@property (nonatomic , strong) UIButton *lsrzBtn;
/** 有机认证查询 */
@property (nonatomic , strong) UIButton *yjrzBtn;

@end

@implementation AXHomeCpsyDsfcjVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    UIImageView *img = [[UIImageView alloc]init];
    img.image = [UIImage imageNamed:@"dsfjc"];
    [self.view addSubview:img];
    
    /** 绿色认证查询 */
    self.lsrzBtn = [[UIButton alloc]init];
    self.lsrzBtn.titleLabel.font = FONT_FOURTEEN;
    [self.lsrzBtn setTitle:@"绿色认证查询" forState:UIControlStateNormal];
    self.lsrzBtn.backgroundColor = COLOR_GREEN;
    [self.lsrzBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.lsrzBtn addTarget:self action:@selector(lsrz:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.lsrzBtn];
    
    /** 有机认证查询 */
    self.yjrzBtn = [[UIButton alloc]init];
     self.yjrzBtn.titleLabel.font = FONT_FOURTEEN;
    [self.yjrzBtn setTitle:@"有机认证查询" forState:UIControlStateNormal];
    self.yjrzBtn.backgroundColor = COLOR_GREEN;
    [self.yjrzBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.yjrzBtn addTarget:self action:@selector(yjrz:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.yjrzBtn];
    
     img.sd_layout
    .leftSpaceToView(self.view, 10)
    .topSpaceToView(self.view, 10)
    .widthIs(Wi-20)
    .heightIs(Wi+84);
    
    self.lsrzBtn.sd_layout
    .leftSpaceToView(self.view, 50)
    .topSpaceToView(img, 20)
    .widthIs(100)
    .heightIs(40);
    
    self.yjrzBtn.sd_layout
    .rightSpaceToView(self.view, 50)
    .topSpaceToView(img, 20)
    .widthIs(100)
    .heightIs(40);
    
    
    
}

#pragma mark - action

- (void)lsrz:(UIButton *)btn {
    
    AXHomeCpsyDsfcjLsrzVC *vc = [[AXHomeCpsyDsfcjLsrzVC alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
    
}

- (void)yjrz:(UIButton *)btn {
    
    AXHomeCpsyDsfcjYjrzVC *vc = [[ AXHomeCpsyDsfcjYjrzVC  alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}


@end
